package com.crm.customers.dao;

import java.util.List;

import com.crm.customers.model.ContactsDynamicInfo;

/**
 * 联系客户动态信息dao
 * */
public interface ContactsDynamicInfoDao {

	/**
	 * 保存客户预约信息
	 * @param cinfo
	 * @return
	 */
	public ContactsDynamicInfo insertContactsDynamicInfo(ContactsDynamicInfo cdinfo);
	
	/**
	 * 保存客户联系人修改状态为2
	 * @param ccontacts
	 * @return
	 */
	public int updateContactsDynamicInfoState(ContactsDynamicInfo cdinfo);

	/**
	 * 查询预约提醒
	 * @param cinfo
	 * @return
	 */
	public List<ContactsDynamicInfo> getContactsDynamicInfo(ContactsDynamicInfo cinfo) ;

	/**
	 * 取得客户联系动态
	 * @param cdinfo
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public List<ContactsDynamicInfo> getContactsDynamicInfoList(ContactsDynamicInfo cdinfo);
	
	/**
	 *  根据预约时间获取已预约的数量
	 */
	public int getContactsDynamicInfoByTime(ContactsDynamicInfo cdinfo) ;
	
	/**
	 * 已联系客户
	 * @param cinfo
	 * @return
	 */
	public int getCustomerTouchCount(ContactsDynamicInfo cdinfo);
	
	/**
	 * 今日已预约客户
	 * @param cinfo
	 * @return
	 */
	public int getCustomerEnteringCount(ContactsDynamicInfo cdinfo);
	
	/**
	 * 根据条件获取已预约或已联系
	 * */
	//public List<ContactsDynamicInfo> getContactsDynamicInfoList()
	
	/**
	 * 获取某个客户所有的联系记录
	 * */
	public List<ContactsDynamicInfo> getAllcdinfoList(ContactsDynamicInfo cdinfo);
 	
	
	
	
	
	
	
	
}
